package com.ruoyi.department.mapper;

import java.util.List;
import com.ruoyi.department.domain.TbDepartment;

/**
 * 部门表Mapper接口
 * 
 * @author zx
 * @date 2025-02-25
 */
public interface TbDepartmentMapper 
{
    /**
     * 查询部门表
     * 
     * @param id 部门表主键
     * @return 部门表
     */
    public TbDepartment selectTbDepartmentById(Long id);

    /**
     * 查询部门表列表
     * 
     * @param tbDepartment 部门表
     * @return 部门表集合
     */
    public List<TbDepartment> selectTbDepartmentList(TbDepartment tbDepartment);

    /**
     * 新增部门表
     * 
     * @param tbDepartment 部门表
     * @return 结果
     */
    public int insertTbDepartment(TbDepartment tbDepartment);

    /**
     * 修改部门表
     * 
     * @param tbDepartment 部门表
     * @return 结果
     */
    public int updateTbDepartment(TbDepartment tbDepartment);

    /**
     * 删除部门表
     * 
     * @param id 部门表主键
     * @return 结果
     */
    public int deleteTbDepartmentById(Long id);

    /**
     * 批量删除部门表
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbDepartmentByIds(Long[] ids);
}
